#ifndef   _MY_ADC_H_
#define   _MY_ADC_H_

#include "adc.h"
#include "gpio.h"

#define MAX_ADC_CNT   20

typedef struct 
{
    uint8_t port_select;
    uint8_t pa1_index;
    uint32_t pa1_dac_buff[MAX_ADC_CNT];
    uint8_t pa2_index;
    uint32_t pa2_dac_buff[MAX_ADC_CNT];
}MY_ADC_PARAM_t;


extern MY_ADC_PARAM_t adc_data;

void charge_state_check(void);
void my_adc_init(void);

#endif

